package S_I.OSI.OVU.OSU.MSQ.MV.SQ.sobelFilter;

import OPE.OEQ.MCQ.OVU.PQE.osgi.OSU_OVQ_OSQ_VSQ;
import ME.VPC.M.app.App;

import javax.swing.JButton;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Panel;
import java.awt.ScrollPane;
import java.awt.image.BufferedImage;

public class SobelFilterOSU_MSQ_AVQ_ASQ_OVQ_OSQ_VSQ
extends OSU_OVQ_OSQ_VSQ{

	public JButton button;
	public String path;
	public SobelFilterOSU_MSQ_AVQ_ASQ_OVQ_OSQ_VSQ(){
	}
	public void view(App NE) {
		scrollPane= new ScrollPane();
		panel=new Panel(){

			public void paint(Graphics g){
				BufferedImage image= new BufferedImage(gout[0].length, gout.length
						, BufferedImage.TYPE_INT_RGB);
				for (int i= 0; i < image.getHeight(); ++i) {
					for (int j1= 0; j1 < image.getWidth(); ++j1) {
						int val= (int) gout[i][j1];
						int pixel= (val << 16) | (val << 8) | (val);
						image.setRGB(j1, i, pixel);
					}
				}
				Image im=(Image)image;
				g.drawImage(im, 0, 0, this);	  			}
		};
		scrollPane.add(panel);
		add(scrollPane);
		close=false;
		
		
	}
	@Override
	public OSU_OVQ_OSQ_VSQ clone() {
		objectView= (OSU_OVQ_OSQ_VSQ)super.clone();  
		return objectView;  
	}
}
